package com.lyk.coursearrange.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lyk.coursearrange.entity.Post;
import com.lyk.coursearrange.entity.dto.PostDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface PostDao extends BaseMapper<Post> {
    List<PostDto> postlist(@Param("po_name") String po_name);

    List<PostDto> findByUserId(@Param("user_id") Long user_id);

    List<PostDto> selectallpost();
}
